home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / RTGMaster / includes / asm / rtgmaster / rtgmaster.i < prev    next >
Encoding:
Text File  |  1998-06-24  |  8.1 KB  |  232 lines

  1. ;
  2. ;     $VER: rtgmaster.i 1.011 (15 Jan 1998)
  3. ;
  4.  
  5.         IFND    RTGMASTER_I
  6. RTGMASTER_I     SET     1
  7.  
  8.         IFND    UTILITY_TAGITEM_I
  9.         Include "utility/tagitem.i"
  10.         ENDC
  11.  
  12.         IFND    EXEC_LIBRARIES_I
  13.         Include "exec/libraries.i"
  14.         ENDC
  15.  
  16.         IFND    EXEC_TYPES_I
  17.         Include "exec/types.i"
  18.         ENDC
  19.  
  20.  
  21. * The TagItem ID's (ti_Tag values) for RtgScreenModeReq()
  22. *
  23. * If a tag is ommited the value in the square brackets will be used
  24. * as the default value.
  25.  
  26.     ENUM TAG_USER+1         ; smr_Tags (RtgScreenModeReq)
  27.  
  28.     EITEM smr_MinWidth      ;[320] This tag sets the minimum width in
  29.                             ;pixels which the user is allowed to select
  30.     EITEM smr_MaxWidth      ;[2048] This tag sets the maximum width in
  31.                             ;pixels which the user is allowed to select
  32.     EITEM smr_MinHeight     ;[200] This tag sets the minimum height in
  33.                             ;pixels which the user is allowed to select
  34.     EITEM smr_MaxHeight     ;[2048] This tag sets the maximum height in
  35.                             ;pixels which the user is allowed to select
  36.  
  37.     EITEM smr_PlanarRoundW  ;[16] RtgScreenModeReq will round user inputed
  38.                             ;values for Width to nearest higher multiple
  39.                             ;of thig tag for Planar display modes
  40.     EITEM smr_PlanarRoundH  ;[1] RtgScreenModeReq will round user inputed
  41.                             ;values for Height to nearest higher multiple
  42.                             ;of thig tag for Planar display modes
  43.  
  44.     EITEM smr_ChunkyRoundW  ;[1] RtgScreenModeReq will round user inputed
  45.                             ;values for Width to nearest higher multiple
  46.                             ;of thig tag for Chunky display modes
  47.     EITEM smr_ChunkyRoundH  ;[1] RtgScreenModeReq will round user inputed
  48.                             ;values for Height to nearest higher multiple
  49.                             ;of thig tag for Chunky display modes
  50.  
  51.     EITEM smr_ChunkySupport ;[0] This LONG is used to indicate which
  52.                             ;Chunky modes the user is allowed to select.
  53.                             ;A set bit means the mode is selectable.
  54.                             ;See the rtg_ChunkySupport tag for more
  55.                             ;information.
  56.  
  57.     EITEM smr_PlanarSupport ;[0] This LONG is used to indicate which
  58.                             ;Planar modes the user is allowed to select.
  59.                             ;A set bit means the mode is selectable.
  60.                             ;See the rtg_PlanarSupport tag for more
  61.                             ;information.
  62.  
  63.     EITEM smr_Buffers       ;[1] Using this tag you're can specify
  64.                             ;the number of buffers your application needs.
  65.                             ;Usually this ranges from 1-3.  Specify
  66.                             ;it here to filter out ScreenModes which can't
  67.                             ;handle the number of buffers you require.
  68.  
  69.     EITEM smr_ProgramUsesC2P;[TRUE] If the program doesn't use the c2p call you have
  70.                             ;to specify FALSE. In this case the c2p part of the
  71.                             ;window is hidden and the the current c2p module is not
  72.                             ;used when filtering the screen modes.
  73.  
  74.     EITEM smr_Dummy2        ; Deleted Tagitem
  75.  
  76.     EITEM smr_Dummy3        ; Deleted Tagitem
  77.  
  78.     EITEM smr_Dummy4        ; Deleted Tagitem
  79.  
  80. ;*******
  81. ; Attention: The following initial values are overwritten
  82. ; by the saved preferences if a valid preferences file
  83. ; is found.
  84.  
  85.     EITEM smr_InitialWidth  ;[320] Initial screen width
  86.                             ;The minimal/maximal selectable width is taken into account.
  87.  
  88.     EITEM smr_InitialHeight ;[200] Initial screen height
  89.                             ;The minimal/maximal selectable height is taken into account.
  90.  
  91.     EITEM smr_InitialDepth  ;[8] Log2 of number of colors
  92.     EITEM smr_InitialScreenMode ;[the first selectable screenmode]
  93.                                 ;Ptr to a string describing the ScreenMode
  94.                                 ;(this is essentially the string pointed to
  95.                                 ;by sm_Name)
  96.  
  97.     EITEM smr_InitialDefaultW   ;[TRUE] False if you don't want the Default
  98.                                 ;width gadget active.
  99.  
  100.     EITEM smr_InitialDefaultH   ;[TRUE] False if you don't want the Default
  101.                                 ;height gadget active.
  102.  
  103.     EITEM smr_PrefsFileName
  104.         ; ["RtgScreenMode.prefs"] (STRPTR)
  105.         ; Specifies the file where the selected screenmode is saved when the
  106.         ; user selects the save button
  107.  
  108.     EITEM smr_ForceOpen
  109.         ; [FALSE] If false, the screenmode requester reads the screenmode
  110.         ; from the file specified by smr_PrefsFileName and returns immediately.
  111.         ; The requester opens only in case of an error when reading the preferences
  112.         ; or when the user presses shift while the requester is called.
  113.         ; If true, the requester opens in any case and lets the user select a
  114.         ; new mode.
  115.  
  116.     EITEM smr_TitleText         ;["RTG Screenmode Requester"] (STRPTR)
  117.                                 ;The title text of the window
  118.  
  119.     EITEM smr_WindowLeftEdge    ;[0] The left edge of the requester window
  120.  
  121.     EITEM smr_WindowTopEdge     ;[0] The top edge of the requester window
  122.  
  123.     EITEM smr_Screen
  124.  
  125. ; [Default Pubscreen] (struct Screen *)
  126. ; The (custom or public) screen on which the screenmode requester should
  127. ; be opened
  128.  
  129.     EITEM smr_PubScreenName
  130.  
  131. ; [NULL] (STRPTR)
  132. ; The name of the public screen on which the screenmode
  133. ; requester should be opened; if not found, the default
  134. ; pubscreen is used.
  135.  
  136. ; ----------------added on 27/10/97 by Wolfram---------------
  137.  
  138.     EITEM smr_MinPixelAspect
  139.  
  140. ; [0] Minimal pixel aspect, defined as
  141. ; (1 << 16) * pixel_height / pixel_width
  142. ; see also: smr_PixelAspect_Proportional, _Wide and _High
  143.  
  144.     EITEM smr_MaxPixelAspect
  145.  
  146. ; [ULONG_MAX] Maximal pixel aspect, defined as
  147. ; (1 << 16) * pixel_height / pixel_width
  148.  
  149. ; End of RtgScreenModeReq() enumeration ***
  150.  
  151.  
  152. ;**********************************************************************
  153. ; Special values for smr_MinPixelAspect and smr_MaxPixelAspect:
  154. ;
  155. ; If you want to get only proportional screen modes with 20% variation,
  156. ; you can set for example:
  157. ;
  158. ; smr_MinPixelAspect, smr_PixelAspect_Proportional *  8 / 10,
  159. ; smr_MaxPixelAspect, smr_PixelAspect_Proportional * 12 / 10
  160. ;
  161.  
  162. ;smr_PixelAspect_Proportional EQU (1 << 16)
  163. ;smr_PixelAspect_Wide         EQU (smr_PixelAspect_Proportional / 2)
  164. ;smr_PixelAspect_Narrow       EQU (smr_PixelAspect_Proportional * 2)
  165.  
  166. ;End of RtgScreenModeReq() enumeration ***
  167.  
  168. *** End of RtgScreenModeReq() enumeration ***
  169.  
  170.  
  171.     
  172. * Execpt for the rb_LibBase structure this structure is private and for
  173. * the internal use of RtgMaster.library ONLY.  This structure will change
  174. * in the future.
  175.  
  176.  STRUCTURE RtgBase,0
  177.   STRUCT rb_LibBase,LIB_SIZE
  178.   ALIGNLONG
  179.   ULONG rb_SegList
  180.   APTR  rb_DosBase
  181.   APTR  rb_ExecBase
  182.   APTR  rb_GadToolsBase
  183.   APTR  rb_GfxBase
  184.   APTR  rb_IntBase
  185.   APTR  rb_UtilityBase
  186.   STRUCT rb_Track,8        ; Special memory tracking structure
  187.   APTR  rb_Libraries       ; Ptr to a list of RtgLibs structures
  188.   APTR  rb_FirstScreenMode ; Ptr to first ScreenMode structure
  189.   APTR  rb_LinkerDB
  190.   LABEL rb_SIZEOF
  191.  
  192. * This structure is private and for the internal use of RtgMaster.library
  193. * ONLY.  This structure will change in the future.
  194.  
  195.  STRUCTURE RDCMPData,0
  196.     APTR rdcmp_port
  197.     ULONG rdcmp_signal
  198.     APTR rdcmp_MouseX
  199.     APTR rdcmp_MouseY
  200.   LABEL rdcmp_SIZEOF
  201.  
  202.  STRUCTURE RtgLibs,0
  203.   APTR  rl_Next           ; Link to next structure
  204.   ULONG rl_ID
  205.   APTR  rl_LibBase
  206.   APTR  rl_SMList         ; Null if there aren't any screenmodes
  207.   APTR  rl_LastSM
  208.   UWORD rl_LibVersion
  209.   LABEL rl_SIZEOF
  210.  
  211.  STRUCTURE RtgBobHandle,0
  212.   ULONG rbh_BufSize
  213.   APTR  rbh_RtgScreen
  214.   APTR  rbh_RefreshBuffer
  215.   ULONG rbh_BPR
  216.   ULONG rbh_Width
  217.   ULONG rbh_Height
  218.   UWORD rbh_numsprites
  219.   UWORD rbh_maxnum
  220.   ULONG rbh_reserved
  221.   LABEL rbh_SIZEOF
  222.  
  223. ;ECS_ID EQU     "ECS "
  224. ;AGA_ID EQU     "AGA "
  225. ;PICASSO_ID     EQU     "PICA"
  226. ;RETINA_ID      EQU     "RETI"
  227. ;MERLIN_ID      EQU     "MERL"
  228. ;EGS_ID EQU     "EGS "
  229. ;CYBGFX_ID      EQU     "CYBG"
  230.  
  231.         ENDC
  232.